/***
 * * PROJECT
 * *    ATaG
 * * VERSION
 * *    $Revision: 1.2 $
 * * DATE
 * *    $Date: 2007/06/09 07:15:51 $
 * * LOG
 * *    $Log: SystemClock.java,v $
 * *    Revision 1.2  2007/06/09 07:15:51  animesh
 * *    update after fixing all but sets and serialization.
 * *
 * *    Revision 1.1  2006/10/26 01:06:17  lmottola
 * *    Created JiST simulator clock.
 * *
 * *    Revision 1.3  2006/10/20 23:54:12  lmottola
 * *    Initial LN code in.
 * *
 * *    Revision 1.2  2006/10/19 21:21:53  lmottola
 * *    Added CVS preamble.
 * *
 * *
 * *   ATaG (Abstract Task Graph) - Data-driven Macroprogramming for
 * *                                Sensor Networks
 * *
 * *   This program is free software; you can redistribute it and/or
 * *   modify it under the terms of the GNU General Public License
 * *   as published by the Free Software Foundation; either version 2
 * *   of the License, or (at your option) any later version.
 * *
 * *   This program is distributed in the hope that it will be useful,
 * *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * *   GNU General Public License for more details.
 * *
 * *   You should have received a copy of the GNU General Public License
 * *   along with this program; if not, you may find a copy at the FSF web
 * *   site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
 * *   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * *   Boston, MA  02111-1307, USA
 ***/

package atag.runtime.platformDependent;

//import java.text.DateFormat;
//import java.text.SimpleDateFormat;
import java.util.Date;

import atag.runtime.IClock;

/**
 * <p>Description: This class represents the system clock.  The functionality it
 * provides is to return the current time and date.  Currently, both these
 * values are returned as a String with a specific format; but any other format
 * can be used as long as the caller can interpret the return value.</p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * @author Amol Bakshi
 * @version 1.0
 */
public class SystemClock implements IClock {

  //private static DateFormat m_dateFormat = new SimpleDateFormat("yyyyMMdd");
  //private static DateFormat m_timeFormat = new SimpleDateFormat("HHmmss");
  private static Date m_today;

  /**
   * Get current date.
   *
   * @return Date formatted as "yyyyMMdd"
   */
  public String getDate() {
       	m_today = new Date();
//       	String nowDate = m_dateFormat.format(m_today);
       	String nowDate = "tempDate";
		return nowDate;
	}

  /**
   * Get current time.
   *
   * @return Time formatted as "HHmmss"
   */
  public String getTime() {
       	m_today = new Date();
//       	String nowTime = m_timeFormat.format(m_today);
       	String nowTime = "tempTime";
		return nowTime;
	}

}
